<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加新报表</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/javascript/jquery.form.js"></script>
<script type="text/javascript" src="/javascript/irreportcheck.js"></script>

</head>

<body>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">新增报表</h2>
      </div>
	  
    </div>
	</br>
	</br>
	<form id="addnewreportform" name="addnewreportform" action="/intreport/addnewreport" method="post">
    <div class="table_div" align="center">
	  <input type="hidden" id="searchcount" name="searchcount" value="1"/>
	  <input type="hidden" id="drillcount" name="drillcount" value="1"/>
	  <input type="hidden" id="colcount" name="colcount" value="1"/>
	  <input type="hidden" id="selectValue" name="selectValue" value="$!{selectValue}"/>
	  <input type="hidden" id="dpValues" name="dpValues" value="$!{dpValues}"/>
	  
      <table class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
		<tr>
          <th align="center" colspan="2">报表基本信息</th>
		</tr>
		
        <tr>
           <td align="center" >名称</td>
		   <td align="center"  >
			<input style="width:280px" type="text"  name="reportBaseInfo" id="reportBaseInfo"/>
		   </td>
        </tr>
		<tr>
           <td align="center" >查询数据库</td>
		   <td align="center" >
			<select size="1"  name="reportBaseInfo" id="reportBaseInfo">
    		   #foreach($db in $dbList)
    			<option value="$db.id" >${db.cname}(${db.ename})</option>
			   #end
            </select>
		   </td>
        </tr>
		
		<tr>
           <td align="center">查询表名</td>
		   <td align="center" >
			<input type="text" style="width:280px" name="reportBaseInfo" id="reportBaseInfo" />
		   </td>
        </tr>
		
		<tr>
           <td align="center">所属类别1</td>
		   <td align="center" >
			<input type="text"  style="width:280px" name="reportBaseInfo" id="reportBaseInfo" />
		   </td>
        </tr>
		
		<tr>
           <td align="center">所属类别2</td>
		   <td align="center" >
			<input type="text"  style="width:280px" name="reportBaseInfo" id="reportBaseInfo" />
		   </td>
        </tr>
		
		<tr>
           <td align="center">报表模板类型</td>
		   <td align="center" >
			<select size="1" style="width:286px"  name="reportBaseInfo" id="reportBaseInfo">
    			<option value="1" >1.查询指标全显示</option>
				<option value="2" >2.查询指标勾选式</option>
            </select>
		   </td>
        </tr>
		
		<tr>
           <td align="center">详细描述</td>
		   <td align="center" >
			<textarea style="width:280px;height:60px"  name="reportBaseInfo" id="reportBaseInfo" ></textarea>
		   </td>
        </tr>
		
		<tr>
           <td align="center">是否支持跨月查询</td>
		   <td align="center" >
			<input type="radio" name="isMonthSearch" value="1" checked >是  
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="isMonthSearch" value="0">否
		   </td>
        </tr>
	 </table>
	 
		</br>
		
	 <table id="searchcontable" name="searchcontable" class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
		<tr>
           <th align="center" colspan="5">
				筛选条件配置
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span style="color:red">(注意填写时标点符号都为半角)</span>
			<input style="float:right;" type="button" onclick="addSearchRow();" value="新增行"/>
			<input style="float:right;" type="button" onclick="delTableAllRow('searchcontable');" value="删除所有行"/>
		   </th>
		  </th>
		</tr>
		
		<tr >
		   <td >
			查询类型
			<select size="1"  name="searchInfo1" id="searchInfo1" onchange="searchCue('searchInfo1')">
    		   #foreach($searchType in $searchTypeList)
    			<option value="$searchType.id" >${searchType.name}</option>
			   #end
            </select>
		   </td>
		   
		   <td >
			查询绑定字段（英）
			<input type="text" style="width:120px" name="searchInfo1" id="searchInfo1" />
		   </td>
		   
		   <td >
			查询条件中文名
			<input type="text" style="width:120px" name="searchInfo1" id="searchInfo1"  readonly />
		   </td>
		   
		   <td >
			<div id="searchmsg1">更多</div>
			<input type="text" style="width:350px"  name="searchInfo1" id="searchInfo1" readonly   />
		   </td>
		   <td >
			<input type="button"  value="删除"  onclick="delSearchCol(this)"/>
           </td>
        </tr>
      </table>
	  
	   </br>


       <table id="drillcontable" name="drillcontable" class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
		<tr>
           <th align="center" colspan="5">
				钻取配置
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span style="color:red">(对应表中关联字段)</span>
			<input style="float:right;" type="button" onclick="addDrillRow();" value="新增行"/>
			<input style="float:right;" type="button" onclick="delTableAllRow('drillcontable');" value="删除所有行"/>
		   </th>
		  </th>
		</tr>
		
		<tr >
		   
		   <td >
			钻取字段(英)
			<input type="text" style="width:120px" name="drillInfo1" id="drillInfo1" />
		   </td>
		   
		   <td >
			关联字段(英)
			<input type="text" style="width:120px" name="drillInfo1" id="drillInfo1" />
		   </td>
		   <td >
			<input type="button"  value="删除"  onclick="delDrillCol(this)"/>
           </td>
        </tr>
      </table>
	  
	   </br>





	 <table class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
		<tr>
           <th align="center">
			查询指标分组标签配置
			<input style="float:right;" type="button" onclick="addTabGrp(this);" value="新增组名"/>
			<input style="float:right;" type="text"/>
		   </th>
		</tr>
		<tr>
           <td align="left">
           <input type="hidden" name="tabGrpVal" id="tabGrpVal" value="指标"/>
           <span name="tabName" id="tabName" val="指标" onDblClick="dbClick(this)">
			指标&nbsp;&nbsp;&nbsp;
			<input type="button" onclick="delTabGrp(this);" value="删除"/>
			&nbsp;&nbsp;&nbsp;
			</span>
		   </td>
		</tr>
      </table>
      
	  </br>
	 <table id="colconfigtable" name="colconfigtable" class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
		<tr>
           <th align="center" colspan="7">
			查询指标配置
			<input style="float:right;" type="button" onclick="addColRow();" value="新增行"/>
			<input style="float:right;" type="button" onclick="delTableAllRow('colconfigtable');" value="删除所有行"/>
		   </th>
		</tr>
		
		<tr >
		   <td >
			数据库字段（英）
			<input type="text" style="width:160px" name="colinfo1" id="colinfo1" />
		   </td>
		   
		   <td >
			字段中文名
			<input type="text" style="width:200px" name="colinfo1" id="colinfo1" />
		   </td>
		   
		   <td >
			类别标签
			<select style="width:70px"  size="1" info="tabType" name="colinfo1" id="colinfo1">
				<option value="指标" >指标</option>			
            </select>
		   </td>
		   
		   <td >
			计算公式（不填则默认字段本身）
			<input type="text" style="width:200px"  name="colinfo1" id="colinfo1"  />
		   </td>
		   
		   <td >
			字段类型
			<select size="1"  name="colinfo1" id="colinfo1">
    			<option value="0" >字符</option>
				<option value="1" >整型</option>
				<option value="2" >浮点</option>
				<option value="3" >百分比</option>
            </select>
		   </td>
		   
		   <td >
			支持排序
			<select size="1"  name="colinfo1" id="colinfo1">
				<option value="1" >是</option>
				<option value="0" >否</option>
            </select>
		   </td>
		   
		   <td >
			<input type="button"  value="删除"  onclick="delColConfig(this)"/>
           </td>
		   
        </tr>
      </table>
	  
	  
	  </br>
	  <table class="sj_tl"  width="90%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
          <th align="center" colspan="2">
            <input type="button"   id="addnew" name="addnew" value="添加"/>
			&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;
			<input type="reset"    value="重置"/>
		  </th>
		</tr>
      </table>
    </div>
	</form>
  </div>

</div>
</div>
</body>
</html>
